home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_aet_lightpulse.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  67 lines

  1. # Jones 3D Cog Script
  2. #
  3. # aet_LightPulse.cog
  4. #
  5. # [RT] [TL]
  6. #
  7. # Pulses a Light Thing on and off
  8. #
  9. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  10. # ========================================================================================
  11. symbols
  12.  
  13. message    startup
  14. message    timer
  15.  
  16. thing    lightThing    
  17.  
  18. flex    duration=0.5        
  19.  
  20. float    change_time=0.01    
  21.  
  22. float    red_min=1.3    
  23. float    green_min=1.3    
  24. float    blue_min=1.3
  25. float    radius_min=1.0
  26.  
  27. float    red_max=10.0    
  28. float    green_max=10.0    
  29. float    blue_max=10.0
  30. float    radius_max=2.0
  31.  
  32. vector    vecLight            local
  33.     
  34. end
  35.  
  36. # ========================================================================================
  37. code
  38.  
  39. startup:
  40.  
  41. vecLight = VectorSet(red_max, green_max, blue_max);
  42. SetThingLight(lightThing, vecLight, radius_max, change_time);
  43.  
  44. SetTimer(duration);
  45.  
  46. return;
  47.  
  48. # ........................................................................................
  49.  
  50. timer:
  51.  
  52. vecLight = VectorSet(red_min, green_min, blue_min);
  53. SetThingLight(lightThing, vecLight, radius_min, change_time);
  54.  
  55. SetTimer(duration);
  56.  
  57. vecLight = VectorSet(red_max, green_max, blue_max);
  58. SetThingLight(lightThing, vecLight, radius_max, change_time);
  59.  
  60. SetTimer(duration);
  61.  
  62. return;
  63.     
  64. # ........................................................................................
  65.  
  66. end
  67.